package com.ja.openchat.viewmodels;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.zy.openchat.core.model.user.UserInfo;

import me.goldze.mvvmhabit.base.MultiItemViewModel;

//红包记录顶部布局
public class RedPacketRecordTopViewModel extends MultiItemViewModel<RedPacketRecordViewModel> {
    public ObservableField<String> text = new ObservableField<>("");
    public ObservableField<String> text_price = new ObservableField<>("");
    //用户头像地址 默认加载自己的头像无需赋值处理
    public ObservableField<UserInfo> userAvatar = new ObservableField<>(UserInfo.getUserInfo());
    public int recordType;

    public RedPacketRecordTopViewModel(@NonNull RedPacketRecordViewModel application, String text, String text_price, int recordType) {
        super(application);
        this.recordType = recordType;
        this.text.set(text);
        this.text_price.set(text_price);
    }
}
